﻿<ul>
    <li class="top1">机构设备管理</li>
    <li class="top2">
        <ul>
            @if (UserAuthnicationHelper.CurrentUserType > UserTypes.Viewer)
            {
                <li>@Html.ActionLink("新增备案机构", "Add", "Company")</li>
            }
            <li>@Html.ActionLink("备案机构列表", "List", "Company")</li>
            <li>@Html.ActionLink("备案机构搜索", "Search", "Company")</li>
        </ul>
    </li>
    <li class="top1">设备备案管理</li>
    <li class="top2">
        <ul>
            @if (UserAuthnicationHelper.CurrentUserType > UserTypes.Viewer)
            {
                <li>@Html.ActionLink("新增备案设备", "AddLocal", "Equipment")</li>
                <li>@Html.ActionLink("非本地设备录入", "AddExternal", "Equipment")</li>
            }
            <li>@Html.ActionLink("已备案设备列表", "List", "Equipment", new { local = true }, null)</li>
            <li>@Html.ActionLink("已登记非本地设备列表", "List", "Equipment", new { local = false }, null)</li>
            <li>@Html.ActionLink("已报废设备列表", "List", "Equipment", new { destory = true }, null)</li>
            <li>@Html.ActionLink("设备搜索", "Search", "Equipment", null, null)</li>
        </ul>
    </li>
    <li class="top1">工程报检管理</li>
    <li class="top2">
        <ul>
            @if (UserAuthnicationHelper.CurrentUserType > UserTypes.Viewer)
            {
                <li>@Html.ActionLink("新增报检", "InspectStart", "Project")</li>
            }
            <li>@Html.ActionLink("工程列表", "List", "Project") </li>
            <li>@Html.ActionLink("已报拆设备库", "List", "Project", new { destory = true }, null)</li>
            <li>@Html.ActionLink("工程搜索", "Search", "Project", null, null)</li>
        </ul>
    </li>
    @if (UserAuthnicationHelper.CurrentUserType >= UserTypes.Operator)
    {
        <li class="top1">@Html.ActionLink("用户管理", "List", "User")</li>
    }
    @if (UserAuthnicationHelper.CurrentUserType == UserTypes.Admin)
    {
        <li class="top1">@Html.ActionLink("系统管理", "Manage", "System")</li>
    }
    @if (UserAuthnicationHelper.CurrentUserType >= UserTypes.Operator)
    {
        <li class="top1">@Html.ActionLink("日志查看", "List", "Log")</li>
    }
    <li class="top1">@Html.ActionLink("退出系统", "Logout", "Home")</li>
</ul>
